interface FullName {
	firstName: string
	lastName: string
	gender?: string
}

let person: FullName = {
	firstName: 'Jonathan',
	lastName: 'Lee'
	// lastName:18 会报错
};

//{firstName, lastName}使用了解构赋值
function say({ firstName, lastName }: FullName): void {
	console.log(`我的姓名是:${firstName}_${lastName}`);
}
say(person);
